package Util;

import com.alibaba.fastjson.JSONObject;

import java.io.IOException;

import static Util.UrlCollect.*;

/**
 * 模板指标对象标题修改
 */
public class IndicatorObiectEdit {

    public static JSONObject indicatorObiectEdit(int id,String indicatorObiectName) throws IOException {
        String params ="{\"titleFootnote\":\""+indicatorObiectName+"\",\"outlineId\":"+id+"}";
        return new HttpUtil().doBodyPost(MODIFY_TITLE_URL,params);
    }

}
